# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=wmi-forensics
pkgver=11.0ab08dc
pkgrel=8
pkgdesc='Scripts used to find evidence in WMI repositories.'
groups=('blackarch' 'blackarch-forensic')
arch=('any')
url='https://github.com/davidpany/WMI_Forensics'
license=('custom:unknown')
depends=('python' 'python-argparse')
makedepends=('git')
source=("$pkgname::git+https://github.com/davidpany/WMI_Forensics.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 CCM_RUA_Finder.py "$pkgdir/usr/bin/CCM_RUA_Finder"
  install -Dm 755 PyWMIPersistenceFinder.py \
    "$pkgdir/usr/bin/PyWMIPersistenceFinder"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}

